package com.ruoyi.common.core.domain;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class DualResDto {
    /** 成功 */
    public static final Integer SUCCESS = 1;

    /** 失败 */
    public static final Integer FAIL = 0;

    private Long id;

    private int code;

    private String msg;

    public Boolean isSuccess() {
        return DualResDto.SUCCESS == this.code;
    }
}
